﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Function.aspx.cs" Inherits="MedicareNoteManagerWeb.Web.Function" %>

<%@ Register Assembly="Comm" Namespace="Comm" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Css/TableStyle.css" rel="stylesheet" type="text/css" />
    <link href="../lib/ligerUI/skins/Gray/css/all.css" rel="stylesheet" />
    <link href="../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <link href="../../lib/ligerUI/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
    <script src="../lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/core/base.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        var win1;
        function f_open() {
            if (win1) win1.show();
            else win1 = $.ligerDialog.open({ height: 400, url: 'MainFunction.aspx', width: 600, showMax: true, showToggle: true, showMin: true, isResize: true, slide: false });
        }
        $(function () {
            $("#DropFunction").ligerComboBox();
        });

    </script>
    <style type="text/css">
        .style3
        {
            width: 408px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <center>
    <div style=" width:96%; margin-top:3%;">
        <table style="width: 100%;">
        <tr>
            <td align="left" colspan="4">
                <asp:Label ID="Label1" runat="server" Text="功能模块管理" Font-Bold="True" 
                    Font-Size="XX-Large" ForeColor="Gray"></asp:Label>
            </td>
        </tr>
            <tr>
                <td>
                    <input type="button" size="120" onclick="f_open()" class="l-button" value="添加主模块" />
                </td>
                <td  align="right"  style="width:100px">
                    <asp:DropDownList ID="DropFunction" runat="server" Width="60px">
                    </asp:DropDownList>
                </td>
                <td align="right" style="width:60px;">
                    <asp:Button ID="BtnFind" CssClass="l-button" runat="server" Text="查询" 
                        onclick="BtnFind_Click" />
                </td>
                <td align="right" style="width:60px">
                    <input id="Button1" type="button" value="新建" class="l-button"
                         onclick='$.ligerDialog.open({ height: 400, url: "ChangeFunction.aspx", 
                        width: 600, showMax: true, showToggle: true, showMin: true, isResize: true, slide: false });' 
                        style="vertical-align: text-bottom;"/>
                </td>
            </tr>
            <tr>
                <td colspan="4" style="padding-top:1%">
                    <asp:GridView ID="gv_ShowFuction" runat="server" AutoGenerateColumns="False"
                        CssClass="l-grid" Width="100%" onrowcommand="gv_ShowFuction_RowCommand" 
                        onrowdeleting="gv_ShowFuction_RowDeleting" 
                        onrowediting="gv_ShowFuction_RowEditing" 
                        onrowcancelingedit="gv_ShowFuction_RowCancelingEdit" 
                        onrowdatabound="gv_ShowFuction_RowDataBound" 
                        onrowupdating="gv_ShowFuction_RowUpdating" BackColor="White" 
                        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                        AllowPaging="True">
                        <EmptyDataTemplate>
                                <div style="background-color: #FFFFD6; color: #ff0000; text-align: center; font-size: 18px">
                                    暂时没有功能模块!
                                </div>
                        </EmptyDataTemplate>
                        <AlternatingRowStyle CssClass="l-grid-row" />
                        <Columns>
                        <asp:TemplateField HeaderText="模块ID" Visible="false">
                                    <ControlStyle CssClass="l-grid" />
                                    <ItemStyle Width="100px" />
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lbl_FunctionID" Text='<%# Eval("MenuID") %>' Font-Size="Medium"></asp:Label>
                                    </ItemTemplate>
                        </asp:TemplateField>
                            <asp:TemplateField HeaderText="模块名称">
                                <ControlStyle CssClass="l-grid" />
                                    <ItemStyle Width="20%" />
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lbl_MenuName" Text='<%# Eval("MenuName") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="tb_FunctionName" runat="server" Width="100px"></asp:TextBox>
                                    </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="分类模块">
                                <ControlStyle CssClass="l-grid" />
                                    <ItemStyle Width="20%" />
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lbl_Class" Text='<%# Eval("Name") %>' ></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddl_Class" runat="server" Width="100px">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="URL">
                                <ControlStyle CssClass="l-grid" />
                                    <ItemStyle Width="20%" />
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lbl_MenuURL" Text='<%# Eval("MenuURL") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="tb_URL" runat="server" Width="100px"></asp:TextBox>
                                    </EditItemTemplate>
                            </asp:TemplateField>
                            
                            <asp:CommandField ShowEditButton="True" HeaderText="" >
                            
                            <ItemStyle Width="5%" HorizontalAlign="Center" ForeColor="#0000D8" />
                            </asp:CommandField>
                            
                            <asp:TemplateField HeaderText="">
                                <ControlStyle CssClass="l-grid-row" />
                                    <ItemStyle Width="5%" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lb_delete" runat="server" CommandName="delete">删除</asp:LinkButton>
                                    </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="White" ForeColor="#000066" />
                        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" 
                            HorizontalAlign="Center" />
                        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                        <RowStyle ForeColor="#000066" />
                        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                        <SortedAscendingCellStyle BackColor="#F1F1F1" />
                        <SortedAscendingHeaderStyle BackColor="#007DBB" />
                        <SortedDescendingCellStyle BackColor="#CAC9C9" />
                        <SortedDescendingHeaderStyle BackColor="#00547E" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    </center>
    </form>
</body>
</html>
